package com.ccq.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ccq.entity.PsiProduct;
import com.ccq.repository.PsiProductRepository;
import com.ccq.service.PsiService;

@Service
public class PsiServiceImpl implements PsiService {
	
	@Autowired
	private PsiProductRepository psiProductRepository;

	public List<PsiProduct> products() {
		
		List<PsiProduct> list = psiProductRepository.findAll();
		
		for (PsiProduct psiProduct : list) {
			System.out.println(psiProduct.getBarcode());
		}
		
		return list;
	}

}
